home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000024_icon-group-sender _Thu Jan 23 11:29:16 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Received: by cheltenham.cs.arizona.edu; Thu, 23 Jan 1997 18:16:43 MST
Message-Id: <1.5.4.32.19970123172916.0073d510@post.its.mcw.edu>
X-Sender: cdt@post.its.mcw.edu
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 23 Jan 1997 11:29:16 -0600
To: Junrong Yuan <joan@cs.ucr.edu>, icon-group@cs.arizona.edu
From: Chris Tenaglia <cdt@post.its.mcw.edu>
Subject: Re: Icon Compiling
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 2495
This is because 'test' is a unix command that tests for
the existence of a file. There's also a unix command : 'which'
which you can use to see which program you're running.
Try 'which test' or 'which newprogram' to make sure you
aren't selecting the name of an already active program.
I suppose you could also run your test with ./test
Chris.
At 09:17 PM 1/22/97 -0800, Junrong Yuan wrote:
>Dear Sirs
>
> I got an interesting problem when trying to compile the following
>short Icon program:
>
>**
> procedure main()
> L := [ 1, 2, 3 ]; # Set L to a list of 3 small integers
> Change_All ( L ); # This procedure does not affect L
> every write ( ! L ); # Display the values of L
> Change_One ( L ); # This procedure changes the first element of
>L
> every write ( ! L ); # Display the values of L
> end
> procedure Change_All ( foo ) # This does not affect the caller's
>foo...
> foo := 86; # ...because we are not changing...
> end # ...a PART of an aggregate
> procedure Change_One ( foo ) # This procedure affects the caller's
>foo...
> foo[1] := 99; # ...because we are changing...
> end # ...a PART of an aggregate
>
>**
>
> When I use icnt -x, the program runs correctly and ouput right
>results, as the following:
>--
>1052 > icont test -x
>Translating:
>test.icn:
> main
> Change_All
> Change_One
>No errors
>Linking:
>Executing:
>1
>2
>3
>99
>2
>3
>hill: /home/csgrads/joan/Class/CS181/ICON/learning
>
> while if I try the other way around, first compile it and then
>execute, it won't give out any output at all! See the following:
>--
>1053 > test
>hill: /home/csgrads/joan/Class/CS181/ICON/learning
>
>--
>
> I am not sure the reason about this. Am I missing something? I am
>looking forward to hearing from you.
>
> THank you very much!
>
> Joan
>
>--
>
>Joan Yuan |VOICE : (909)787-2953
>Dept. Of Computer Science |FAX : (909)787-4643
>University Of California |WWW : http://www.cs.ucr.edu/~joan/
>Riverside, CA 92521-0304 |EMAIL : joan@cs.ucr.edu
>
>
>
>
>
>
>
>
>
Chris Tenaglia (system manager) | cdt@post.its.mcw.edu
Medical College of Wisconsin |
8701 W. Watertown Plank Rd. | Ce que vous voyez est
Milwaukee, WI 53226 (414)456-8765 | Ce que vous obtenez !